<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/fa/list{{listWhere}}">{{vtype}}</a></li>
    <li class="active">详情</li>
    <li class="op-bc">
      <div class="glyphicon glyphicon-plus" has-auth where="btn" who="FA_BLACK_ADD" ng-click="showBlackAddForm(id)">加入黑名单</div>
    </li>
  </ol>
  <table class="table table-striped table-bordered">
    <tbody>
      <tr>
        <td class="text-muted" width="150">头像</td>
        <td colspan="3"><img ng-src="{{staticHost}}{{item.uImage}}" width="80" height="80" /></td>
      </tr>
      <tr>
        <td class="text-muted">FAID</td>
        <td>{{item.id}}
          <div class="wx-icon" title="已绑定微信" ng-if="item.wechatFlag"></div>
        </td>
        <td class="text-muted" width="150">机构FAID</td>
        <td>{{item.uManagerId }}</td>
      </tr>
      <tr>
        <td class="text-muted">登录手机号</td>
        <td>{{item.uLoginName}}
          <div class="wx-icon" title="已绑定微信" ng-if="item.wechatFlag"></div>
        </td>
        <!-- ng-if="item.licaishiManagerUser == item.uLoginName || loginStatus.loginName == 'admin'"
        <td ng-if="item.licaishiManagerUser != item.uLoginName && loginStatus.loginName != 'admin'">{{item.uLoginName | isEqualMyphone}}
          <div class="wx-icon" title="已绑定微信" ng-if="item.wechatFlag"></div>
        </td>
        -->
        <td class="text-muted" width="150">昵称</td>
        <td>{{item.uName }}</td>
      </tr>
      <tr>
        <td class="text-muted">注册时间</td>
        <td>{{item.createDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td class="text-muted">登录次数</td>
        <td>{{item.loginNum}}</td>
      </tr>
      <tr>
        <td class="text-muted">最后登录时间</td>
        <td>{{item.lastLoginTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td class="text-muted">最后登录IP</td>
        <td>{{item.lastLoginIp}}</td>
      </tr>
      <tr>
        <td class="text-muted">审核时间</td>
        <td>{{item.authDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td class="text-muted">媒体来源</td>
        <td>{{item.mediaSource | mediaSourceRender}}</td>
      </tr>
      <tr>
        <td class="text-muted">审核操作人</td>
        <td>{{item.authByName}}</td>
        <td class="text-muted">审核状态</td>
        <td class=" cert-status-{{item.uRole}}">
          <a href="javascript:" ng-click="checkFaUser(item.id,item.uMobile,item.mediaSource,item.isValid)">{{item.status | faRoleStatusRender:item.uRole}}</a>({{item.authSource}})
        </td>
      </tr>
      <tr>
        <td class="text-muted">上级邀请人FAID</td>
        <td>{{item.sourceCode}}</td>
        <td class="text-muted">审核评级</td>
        <td class=" cert-status-{{item.uRole}}">{{item.status | faRoleStatusRender:item.uRole}}</td>
      </tr>
      <tr>
        <td class="text-muted">上级邀请人电话</td>
        <td>{{item.sourceLoginName}}</td>
        <td class="text-muted">客户来源</td>
        <td >{{item.faUserauth.customerSource}}</td>
      </tr>
      <tr>
        <td class="text-muted">姓名</td>
        <td>{{item.uRealName}}</td>
        <td class="text-muted">公司名称</td>
        <td>{{item.uCompanyName}}</td>
      </tr>
      <tr>
        <td class="text-muted">微信</td>
        <td>{{item.faUserauth.wechatNo}}</td>
        <td class="text-muted">公司职位</td>
        <td>{{item.uJob}}</td>
      </tr>
      <tr>
        <td class="text-muted">手机号</td>
        <td>{{item.uMobile}}</td>
        <td class="text-muted">邮箱地址</td>
        <td>{{item.uEmail}}</td>
      </tr>
      <tr>
        <td class="text-muted">性别</td>
        <td>{{item.uSex | sexRender}}</td>
         <td class="text-muted">公司地址</td>
        <td>{{item.uCompanyADD}}</td>
      </tr>
      <tr>
        <td class="text-muted">其他联系方式</td>
        <td>{{item.faUserauth.otherContactInfo}}</td>
        <td class="text-muted">工作年限</td>
        <td>{{item.faUserauth.tradeAge}}年</td>
      </tr>
       <tr>
        <td class="text-muted">从事行业</td>
        <td>{{item.faUserauth.trade | tradeTextRender}}</td>
        <td class="text-muted">擅长领域</td>
        <td>
          <span >{{item.faUserauth.customerLable | faCustomerLable}}</span>
        </td>
      </tr>
      <tr>
        <td class="text-muted">联系地址</td>
        <td>{{item.uAddress}}</td>
        <td class="text-muted">客户热度</td>
        <td>{{item.faUserauth.customerHeat | faCustomerHeat}}</td>
      </tr>

      <tr>
        <td class="text-muted">对浮动收益产品的熟悉程度</td>
        <td>{{item.faUserauth.customerKnowledge | faCustomerKnowledge}}</td>
        <td class="text-muted">客户分类</td>
        <td>{{item.faUserauth.customerCategory | faCustomerCategory}}</td>
      </tr>
      <tr>
        <td class="text-muted">操作人（分配人）</td>
        <td>{{item.licaishiVO.updateBy}}</td>
        <td class="text-muted">客户阶段</td>
        <td>{{item.faUserauth.customerStage | faCustomerStage}}</td>
      </tr>
      <tr>
        <td class="text-muted">服务顾问</td>
        <td>{{item.licaishiManagerUser}}</td>
        <td class="text-muted">离最后一次回访停留时间</td>
        <td>{{stayAwayFromTheLastVisit}}</td>
      </tr>
      <tr>
        <td class="text-muted">分配时间</td>
        <td>{{item.licaishiVO.createDate | date:'yyyy-MM-dd HH:mm:ss' }}</td>
        <td class="text-muted">首次回访周期</td>
        <td>{{firstReturnVisitCycle}}</td>
      </tr>
      <tr>
        <td class="text-muted">首次回访时间</td>
        <td>{{item.visitStatisticVO.firstReturnVisitTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
        <td class="text-muted">最新回访时间</td>
        <td>{{item.visitStatisticVO.latestVisitTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
      </tr>
      <tr>
        <td class="text-muted">是否回访</td>
        <td>
          <span ng-if="item.visitFlag">
            <a href="javascript:" ng-click="showVisitLayer(item.id,item.uMobile,item.mediaSource,item.isValid)">已回访({{visitList.length}})</a><!--{{item.visitStatisticVO.visitCount}}-->
          </span>
          <span ng-if="!item.visitFlag">
            <a href="javascript:" ng-click="showVisitLayer(item.id,item.uMobile,item.mediaSource,item.isValid)">未回访</a>
          </span>
         <div style="height: 80px; overflow: auto;width: 600px;">
          <p ng-repeat="v in visitList">
            {{v.visitPerson}} | {{v.remark}} | {{v.createDate | date : 'yyyy-MM-dd HH:mm:ss'}}
          </p>
          </div>
          <div class="form-inline">
            <input type="text" class="form-control" ng-model="visitRemark" />
            <input type="button" value="添加回访" class="btn btn-small btn-warning" ng-click="addFaUserVisit()" />
            <input type="button" value="添加待办" class="btn btn-small btn-warning" ng-click="ckSendMessage(2)" />
            <input type="button" value="发送短信" class="btn btn-small btn-warning" ng-click="ckSendMessage(1)" />
          </div>

        </td>
        <td class="text-muted">交易次数</td>
        <td>{{item.visitStatisticVO.orderCount}}</td>
      </tr>
      <tr>
        <td class="text-muted">审核失败原因</td>
        <td colspan="3">
          <span ng-if="item.uRole == 99">{{item.uAuditOpinion}}</span>
        </td>
      </tr>
    
      <tr>
        <td class="text-muted">客户简介</td>
        <td colspan="3">
          <span>{{item.uRemark}}</span>
        </td>
      </tr>
      <tr>
        <td class="text-muted">审核备注</td>
        <td colspan="3">{{item.auditRemarks}}</td>
      </tr>
      <tr>
        <td class="text-muted">标记为机构总帐户</td>
        <td colspan="3">
          <button class="btn btn-primary" ng-if="(item.uType == '0' || item.uType == '3') && !companyInvitationCode" ng-click="markFaUser();" has-auth where="btn" who="FA_MARK_FA_USER">标记为机构总帐户</button>
          <span ng-if="item.uType != '0' && item.uType != '3'">已是机构账户</span>
          <span ng-if="companyInvitationCode">邀请码：{{companyInvitationCode}}</span>
        </td>
      </tr>
      <tr>
        <td colspan="4">
          <input class="btn btn-primary" ng-click="faItem('prev')" ng-disabled="now==0" value="上一页">
          <input class="btn btn-primary" ng-click="faItem('next')" value="下一页" ng-disabled="now == 19">
        </td>
      </tr>
    </tbody>
  </table>
</div>
<div class="layer-box" ng-show="showBlackAddFormFlag">
  <div class="layer-bg"></div>
  <div class="layer-con " style="padding:10px 20px;">
    <span class="icons-close" title="关闭" ng-click="showBlackAddFormFlag = false;">X</span>
    <div class="layer-title">
      请填写加入黑名单原因
    </div>
    <div class="con-wrap">
      <form class="form-horizontal" role="form" name="form" novalidate ng-submit="blackAdd()">
        <div class="form-group" ng-class="{'has-error':form.remark.$invalid}">
          <textarea class="form-control" autocomplete="off" value="" name="remark" ng-model="black.remark" maxlength="100" required="required" placeholder="加入黑名单原因" style="height:100px;"></textarea>
        </div>
        <div class="form-group">
          <input type="submit" class="btn btn-block btn-primary" value="保存" />
        </div>
      </form>
    </div>
  </div>
</div>
<!-- 审核表单 begin -->
  <div class="layer-box" ng-show="isShowCheckFaUser">
    <div class="layer-bg"></div>
    <div class="layer-con " style="padding:10px 20px; width:555px; left:40%; top:10px;">
      <span class="icons-close" title="关闭" ng-click="isShowCheckFaUser = false;" style="top: 0px; right: 8px;">X</span>
      <div class="layer-title">
        FA手机号:{{item.uMobile}}
      </div>
      <div  style="overflow:auto; width:535px; height:480px;padding:10px 20px;">
      <form class="form-horizontal cert-form" novalidate role="form" name="certform" ng-submit="certSave()" novalidate>
        <div class="form-group" ng-class="{'has-error':form.uCompanyName.$invalid}">
          <label class="col-sm-2 control-label">名片</label>
          <div class="col-sm-5">
          <div class="cert-img-box">
            <a ng-href="{{staticHost}}{{item.uCardAddress}}" target="_blank"><img ng-src="{{staticHost}}{{item.uCardAddress}}" ng-show="item.uCardAddress" /></a>
          </div>
          <div class="mt-20 ">
            <div class="btn btn-primary add-pic-btn mt-15" ng-show="item.uRole == '98' || item.uRole == '99' || item.uRole == '1'">上传名片</div>
            <div class="btn btn-primary  mt-15 ml-10" ng-click="saveUpload()" ng-show="isShowSaveUpload">保存名片</div>
          </div>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':certform.uCompanyName.$invalid}">
          <label class="col-sm-2 control-label">公司名称</label>
          <div class="col-sm-7">
            <input type="text" class="form-control" placeholder="公司名称地址" name="uCompanyName" id="uCompanyName" ng-keyup="keyupChange($event,'ucn')" ng-model="cert.uCompanyName" ng-change="showSanfangCompany(cert.uCompanyName)" autocomplete="off">
            <div class="sanfang-company" ng-show="isShowSelectCompany">
              <ul>
                <li ng-repeat="c in sfCompanyList | filter:cert.uCompanyName" ng-click="selectedSanfangCompany(c.tpcFullName)">{{c.tpcFullName}}</li>
              </ul>
            </div>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':certform.uCompanyADD.$invalid}">
          <label class="col-sm-2 control-label">公司地址</label>
          <div class="col-sm-7">
            <input type="text" class="form-control" placeholder="公司地址" name="uCompanyADD" ng-model="cert.uCompanyADD">
          </div>
        </div>

        <div class="form-group" ng-class="{'has-error':certform.uRealName.$invalid}">
          <label class="col-sm-2 control-label">姓名</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="uRealName" ng-model="cert.uRealName">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':certform.wechatNo.$invalid}">
          <label class="col-sm-2 control-label">微信</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="wechatNo" ng-model="cert.wechatNo">
          </div>
        </div>

        <div class="form-group" ng-class="{'has-error':certform.uSex.$invalid}">
          <label class="col-sm-2 control-label">性别</label>
          <div class="col-sm-5">
            <select class="form-control" name="uSex" ng-model="cert.uSex"  > 
            <option value="">请选择</option>
            <option value="0">保密</option>
            <option value="1">男</option>
            <option value="2">女</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':certform.uJob.$invalid}">
          <label class="col-sm-2 control-label">职位</label>
          <div class="col-sm-7">
            <input type="text" class="form-control" placeholder="职位" name="uJob" ng-model="cert.uJob" >
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':certform.uEmail.$invalid}">
          <label class="col-sm-2 control-label">邮箱</label>
          <div class="col-sm-7">
            <input type="email" class="form-control" placeholder="邮箱" name="uEmail" ng-model="cert.uEmail">
          </div>
        </div>
      <div has-auth  who="YUNYING_BUCHECK_FA" where="btn"> 
        <div class="form-group" ng-class="{'has-error':certform.uRole.$invalid}">
          <label for="advertTitleInput" class="col-sm-2 control-label">认证情况</label>
          <div class="col-sm-5">
            <select class="form-control" name="uRole" ng-model="cert.uRole" ng-options="m.value as m.text for m in dictMap['certResultModel']" ng-change="selectRoleResult(this,m.value)"> </select>
          </div>
        </div>
        <div class="form-group" ng-if="cert.uRole == 99" ng-class="{'has-error':certform.uAuditOpinion.$invalid}">
          <label for="advertTitleInput" class="col-sm-2 control-label">认证未通过原因</label>
          <div class="col-sm-5">
            <select class="form-control" name="uAuditOpinion" required="required" ng-model="cert.uAuditOpinion"  ng-change="auditOption();">
              <option value="注册手机号码与名片手机号码不一致">注册手机号码与名片手机号码不一致</option>
              <option value="未上传名片或上传名片与资质要求不符">未上传名片或上传名片与资质要求不符</option>
              <option value="3">其他</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-if="aoMsg&&cert.uRole == 99&&cert.uAuditOpinion==3" ng-class="{'has-error':certform.auditOptionMessage.$invalid}">
          <label class="col-sm-2 control-label"></label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="auditOptionMessage" required="required" ng-model="auditop.auditOptionMessage" placeholder="认证未通过原因">
          </div>
        </div>
        <div class="form-group">
          <label for="advertTitleInput" class="col-sm-2 control-label">审核评级</label>
          <div class="col-sm-7">
            <ul class="cert-level-list">
              <li ng-repeat="o in dictMap['certLevelTypeModel']" ng-click="selectLevelType(o.value)" ng-class="{selected:cert.type==o.value}">{{o.text}}</li>
            </ul>
          </div>
        </div>
      </div>
        <div class="form-group" ng-class="{'has-error':certform.auditRemarks.$invalid}">
          <label for="auditRemarks" class="col-sm-2 control-label">备注</label>
          <div class="col-sm-7">
            <textarea class="form-control" id="auditRemarks" placeholder="备注" name="auditRemarks" ng-model="cert.auditRemarks" style="height:80px;"></textarea>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-8">
            <button type="submit" class="btn btn-default">提交</button>
          </div>
        </div>
      </form>
      </div>
    </div>
  </div>
<!-- 审核表单 end -->

<!-- 回访表单 Begin -->
  <div class="layer-box" ng-show="isShowVisitLayer">
  <div class="layer-bg"></div>
  <div class="layer-con " style=" width:550px; left:40%; top:10px;height:500px;">
    <span class="icons-close" title="关闭" ng-click="isShowVisitLayer = false;" style="top: 0px; right: 8px;">X</span>
    <div style="overflow:auto; width:535px; height:480px;padding:10px 20px;">
    <form class="form-horizontal cert-form" role="form" name="visitform" >
        <div class="form-group" ng-class="{'has-error':visitform.uRealName.$invalid}">
          <label class="col-sm-2 control-label">姓名</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="uRealName" ng-model="visit.uRealName">
            <input type="hidden" class="form-control" name="faId" ng-model="visit.faId">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uMobile.$invalid}">
          <label class="col-sm-2 control-label">手机号</label>
          <div class="col-sm-5">
            <input type="text"  class="form-control" name="uMobile" ng-model="visit.uMobile">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.otherContactInfo.$invalid}">
          <label class="col-sm-2 control-label">其他联系方式</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="otherContactInfo" ng-model="visit.otherContactInfo">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.wechatNo.$invalid}">
          <label class="col-sm-2 control-label">微信</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" name="wechatNo" ng-model="visit.wechatNo">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uCompanyName.$invalid}">
          <label class="col-sm-2 control-label">公司名称</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" placeholder="公司名称" name="uCompanyName" ng-model="visit.uCompanyName" ng-change="showSanfangCompany(visit.uCompanyName)" autocomplete="off">
            
            <div class="sanfang-company;" style="left:18%;top: 122%;" ng-show="isShowSelectCompany">
              <ul>
                <li ng-repeat="c in sfCompanyList | filter:visit.uCompanyName" ng-click="selectedSanfangCompany(c.tpcFullName, '02')">{{c.tpcFullName}}</li>
              </ul>
            </div>

          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uAddress.$invalid}">
          <label class="col-sm-2 control-label">联系地址</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" placeholder="联系地址" name="uAddress" ng-model="visit.uAddress">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uSex.$invalid}">
          <label class="col-sm-2 control-label">性别</label>
          <div class="col-sm-5">
            <select class="form-control" name="uSex" ng-model="visit.uSex" > 
            <option value="">请选择</option>
            <option value="0">保密</option>
            <option value="1">男</option>
            <option value="2">女</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uJob.$invalid}">
          <label class="col-sm-2 control-label">职位</label>
          <div class="col-sm-5">
            <input type="text" class="form-control" placeholder="职位" name="uJob" ng-model="visit.uJob">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.uEmail.$invalid}">
          <label class="col-sm-2 control-label">邮箱</label>
          <div class="col-sm-5">
            <input type="email" class="form-control" placeholder="邮箱" name="uEmail" ng-model="visit.uEmail">
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.customerHeat.$invalid}">
          <label class="col-sm-2 control-label">客户热度</label>
          <div class="col-sm-5">
            <select class="form-control" name="customerHeat" ng-model="visit.customerHeat"  > 
            <option value="1">A类客户</option>
            <option value="2">B类客户</option>
            <option value="3">C类客户</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.customerCategory.$invalid}">
          <label class="col-sm-2 control-label">客户分类</label>
          <div class="col-sm-5">
            <select class="form-control" name="customerCategory" ng-options="m.value as m.text for m in dictMap['customerCategoryModel']" ng-model="visit.customerCategory"  > 
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.customerStage.$invalid}">
          <label class="col-sm-2 control-label">客户阶段</label>
          <div class="col-sm-5">
            <select class="form-control" name="customerStage" ng-model="visit.customerStage"  > 
            <option value="1">初步沟通</option>
            <option value="2">潜在客户跟踪</option>
            <option value="3">合同执行</option>
            <option value="4">产品成立</option>
            <option value="5">合同期满</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.customerKnowledge.$invalid}">
          <label class="col-sm-2 control-label">对浮动产品的熟悉程度</label>
          <div class="col-sm-5">
            <select class="form-control" name="customerKnowledge" ng-model="visit.customerKnowledge"  > 
            <option value="1">不熟悉</option>
            <option value="2">一般熟悉</option>
            <option value="3">非常熟悉</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.customerSource.$invalid}">
          <label class="col-sm-2 control-label">客户来源</label>
          <div class="col-sm-5">
            <input type="text" class="form-control"  name="customerSource" ng-model="visit.customerSource">
          </div>
        </div>
        <div class="form-group">
          <label for="advertTitleInput" class="col-sm-2 control-label">客户标签</label>
          <div class="col-sm-7">
            <ul class="cert-level-list">
              <li ng-repeat="o in dictMap['faUserCustomerLable']" ng-click="selectCustomerLable(o.value)" ng-class="{selected:visit.customerLable ==o.value}">{{o.text}}</li>
            </ul>
          </div>
        </div>
      </form>
    <div class="layer-title">
      FA手机号:{{item.uMobile}}
    </div>
    <div class="con-wrap">
      <div class="form-group">
        <table class="table table-striped table-bordered" >
          <tr>
            <td style="width:50px;">回访人</td>
            <td style="width:300px;">回访备注</td>
            <td style="width:100px;">回访时间</td>
          </tr>
          <tr>
            <td colspan="3">
              <div style="height:200px;overflow:auto"> 
                  <table class="table table-striped table-bordered" >
                      <tr ng-repeat="v in visitList">
                        <td style="width:50px;">{{v.visitPerson}}</td>
                        <td style="width:300px;">{{v.remark}}</td>
                        <td style="width:100px;">{{v.createDate | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
                      </tr>
                  </table>
              </div>
            </td>
          </tr>
        </table>
        <table class="table table-striped table-bordered">
          <tr ng-if="item.mediaSource === 'YQF' && '0' != item.isValid && '1' != item.isValid">
            <td style="width:70%">
              <select class="form-control" ng-model="adValid">
                <option value="">请选择</option>
                <option value="2">未知</option>
                <option value="0">无效</option>
                <option value="1">有效</option>
              </select>
            </td>
            <td>
              <input type="button" value="修改用户有效性" class="btn btn-small btn-warning" ng-click="faUserVisitUpdate(adValid)" />
            </td>
          </tr>
          <tr>
            <td>
              <input type="text" class="form-control" ng-model="visitRemark" />
            </td>
            <td>
              <input type="button" value="添加回访" class="btn btn-small btn-warning" ng-click="addFaUserVisit()" />
            </td>
          </tr>
        </table>
      </div>
    </div>
    </div>
  </div>
</div>
<!-- 回访表单 end -->
<!-- 发送短信 Begin -->
<div class="layer-box" ng-show="isShowMsgVariable" ng-init="isShowMsgVariable = false">
  <div class="layer-bg"></div>
  <div class="layer-con " style=" width:550px; left:40%; top:10px;height:500px;">
    <span class="icons-close" title="关闭" ng-click="isShowMsgVariable = false;" style="top: 0px; right: 8px;">X</span>
    <div style="overflow:auto; width:535px; height:480px;padding:10px 20px;">
      <form class="form-horizontal cert-form" role="form" name="visitform" >
        <div class="form-group" ng-class="{'has-error':visitform.faRevisitContent.$invalid}">
          <label ng-if="sendMsgData.faRevisitType == 1" class="col-sm-2 control-label">编辑短信内容</label>
          <label ng-if="sendMsgData.faRevisitType == 2" class="col-sm-2 control-label">待办内容</label>
          <div class="col-sm-5">
            <textarea  class="form-control" name="uRealName" ng-model="sendMsgData.faRevisitContent"></textarea>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error':visitform.faRevisitPhone.$invalid || visitform.faRevisitDate.$invalid}">
          <label ng-if="sendMsgData.faRevisitType == 1"  class="col-sm-2 control-label">发送客户号码</label>
          <label ng-if="sendMsgData.faRevisitType == 2" class="col-sm-2 control-label">待办时间</label>
          <div class="col-sm-5">
            <input type="text" ng-init="sendMsgData.faRevisitPhone = item.uMobile" ng-if="sendMsgData.faRevisitType == 1" class="form-control" name="faRevisitPhone" ng-model="sendMsgData.faRevisitPhone" maxlength="11" >
            <input type="datetime-local" ng-if="sendMsgData.faRevisitType == 2"  class="form-control" name="faRevisitDate" ng-model="sendMsgData.faRevisitDate" >
          </div>
        </div>
        <div class="form-inline">
          <input type="button" value="取消" class="btn btn-small btn-warning" ng-click="isShowMsgVariable = false" />
          <input type="button" value="确定" class="btn btn-small btn-warning" ng-click="sendMessage()" />
        </div>

      </form>

    </div>
  </div>
</div>
 <!--发送短信 end-->


<div load-script src="'/static/jquery.jUploader-1.01.js?7'" call-back="" charset="utf-8"></div>
